package com.amado.course45mysql03.domain;

import java.util.Date;
import java.util.List;

/**
 * 角色
 * 
 * @author Administrator
 *
 */
public class Role {
	private Long id;
	/**
	 * 角色CODE
	 */
	private String roleCode;
	/**
	 * 角色名称
	 */
	private String roleName;
	/**
	 * 创建时间
	 */
	private Date createTime;
	/**
	 * 操作权限
	 */
	private List<RoleOptMapping> optList;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getRoleCode() {
		return roleCode;
	}

	public void setRoleCode(String roleCode) {
		this.roleCode = roleCode;
	}

	public String getRoleName() {
		return roleName;
	}

	public void setRoleName(String roleName) {
		this.roleName = roleName;
	}

	public Date getCreateTime() {
		return createTime;
	}

	public void setCreateTime(Date createTime) {
		this.createTime = createTime;
	}

	public List<RoleOptMapping> getOptList() {
		return optList;
	}

	public void setOptList(List<RoleOptMapping> optList) {
		this.optList = optList;
	}
	public Role(){
		
	}
	public Role(Long id, String roleCode, String roleName, Date createTime) {
		super();
		this.id = id;
		this.roleCode = roleCode;
		this.roleName = roleName;
		this.createTime = createTime;
	}

}
